/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package event;

import java.io.Serializable;
import java.net.SocketAddress;
import net.sf.appia.core.AppiaEventException;
import net.sf.appia.core.Channel;
import net.sf.appia.core.Session;
import net.sf.appia.core.events.SendableEvent;
import net.sf.appia.core.message.Message;

/**
 *
 * @author Welington
 */
public class JobSendableEvent extends SendableEvent implements Serializable{
    private int rqid;
    
    public JobSendableEvent() {
        super();
    }
    
     public JobSendableEvent(Channel channel, int dir, Session source) throws AppiaEventException {
        super(channel, dir, source);
        this.message = null;
        this.source = null;
        this.dest   = null;
    }
    
    public JobSendableEvent(Channel channel, int dir, Session source, Message msg) throws AppiaEventException {
        super(channel, dir, source, msg);
        this.source = null;
        this.dest   = null;
    }
    
    public JobSendableEvent(Channel channel, int dir, Session source, Message msg, SocketAddress srcAddress, SocketAddress destAddress) throws AppiaEventException {
        super(channel, dir, source, msg);
        
        this.source = srcAddress;
        this.dest   = destAddress;
    }

    public int getId() {
        return rqid;
    }

    public void setId(int rqid) {
        this.rqid = rqid;
    }
}
